﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Evaluant.NLinq.Tests
{
    public class Person
    {
        public Person()
        {
        }

        public Person(string firstname)
        {
            this.firstname = firstname;
        }

        public Person(string firstname, int age)
        {
            this.firstname = firstname;
            this.age = age;
        }

        private string firstname;

        public string Firstname
        {
            get { return firstname; }
            set { firstname = value; }
        }

        private int age;

        public int Age
        {
            get { return age; }
            set { age = value; }
        }

        public override string ToString()
        {
            return firstname + " (" + Age.ToString() + ")";
        }

        private List<Person> friends = new List<Person>();

        public List<Person> Friends
        {
            get { return friends; }
        }

    }


    public class Address
    {
        public Address(string owner, string city)
        {
            this.owner = owner;
            this.city = city;
        }

        private string owner;

        public string Owner
        {
            get { return owner; }
            set { owner = value; }
        }

        private string city;

        public string City
        {
            get { return city; }
            set { city = value; }
        }

        public override string ToString()
        {
            return city;
        }
    }
}
